package com.jyxd.web.data.dictionary;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 正常值字典表（生命体征）
 */
@Entity
@Table(name = "dict_normal_value")
@Data
public class NormalValueDictionary implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 项目code
     */
    @Column(name = "item_code")
    private String itemCode;

    /**
     * 最高值
     */
    @Column(name = "max_value")
    private String maxValue;

    /**
     * 最低值
     */
    @Column(name = "minimum_value")
    private String minimumValue;


    /**
     * 项目所属表
     */
    @Column(name = "item_form_code")
    private String itemFormCode;

    /**
     * 状态（0：禁用 1：正常 -1：删除）
     */
    @Column(name = "status")
    private int status;
}
